//
//  LogCatAlertHelper.h
//  LogCat
//
//  Created by 清风徐来 on 2024/1/3.
//

#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface LogCatAlertHelper : NSObject

/// 显示Alert弹窗
/// - Parameters:
///   - title: 标题
///   - message: 消息
///   - btnTitle: 按钮标题
+ (void)showAlertMessage:(NSString *)title message:(NSString *)message btnTitle:(NSString *)btnTitle;

/// 显示Alert弹窗
/// - Parameters:
///   - title: 标题
///   - message: 消息
///   - btnTitle: 按钮标题
///   - sender: 当前控制器
+ (void)showAlertMessage:(NSString *)title message:(NSString *)message btnTitle:(NSString *)btnTitle sender:(UIViewController * _Nullable)sender;

/// 显示Alert弹窗
/// - Parameters:
///   - title: 标题
///   - message: 消息
///   - btnTitle: 按钮标题
///   - sender: 当前控制器
///   - handler: 回调
+ (void)showAlertMessage:(NSString *)title message:(NSString *)message btnTitle:(NSString *)btnTitle sender:(UIViewController * _Nullable)sender handler:(void (^ __nullable)(UIAlertAction *action))handler;

@end

NS_ASSUME_NONNULL_END
